determine if string halves are alike